// 库存管理接口
import request from "@/common/request.js";
const api = {
  contract: "/contract/",
  contract_classify:'/contract_classify/'
};

const conContractApi = {
   get_contract_classify(params) {
    return request({
      url: api.contract_classify,
      method: "get",
      params,
    });
  },
  get_contract(params) {
    return request({
      url: api.contract,
      method: "get",
      params,
    });
  },

  contract_detail(id) {
    return request({
      url: api.contract + id,
      method: "get",
    });
  },

  post_contract(data) {
    return request({
      url: api.contract,
      method: "post",
      data,
    });
  },

  patch_contract(data, id) {
    return request({
      url: api.contract + id + "/",
      method: "patch",
      data,
    });
  },

  delete_contract(id) {
    return request({
      url: api.contract + id + "/",
      method: "delete",
    });
  },
};
export default conContractApi;
